<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
 <head>
  <title>款单</title>
    <style>
  .ui-button {
  	  display: inline-block;
	  padding: 2px 2px;
	  margin-bottom: 0;
	  font-size: 8px;
	  font-weight: normal;
	  line-height: 1.42857143;
	  text-align: center;
	  white-space: nowrap;
	  vertical-align: middle;
	  -ms-touch-action: manipulation;
      touch-action: manipulation;
	  cursor: pointer;
	  -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;
	  background-image: none;
	  border: 1px solid transparent;
	  border-radius: 4px;
  }
  </style>
  <t:base type="jquery,easyui,tools,DatePicker"></t:base>
  <script type="text/javascript">
  $(document).ready(function(){
	$('#tt').tabs({
	   onSelect:function(title){
	       $('#tt .panel-body').css('width','auto');
		}
	});
	$(".tabs-wrap").css('width','100%');
  });
 </script>
 </head>
 <body style="overflow-x: hidden;">
  <t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" tiptype="1" action="tKpYushouHController.do?doAdd" >
					<input id="id" name="id" type="hidden" value="${tKpYushouHPage.id }"/>
	  <input id="ysType" name="ysType" type="hidden" value="${ysType }"/>
	<table cellpadding="0" cellspacing="1" class="formtable">
		<tr>
			<td align="right">
				<label class="Validform_label">客户编码:</label>
			</td>
			<td class="value">
					  <t:dictSelect extendJson="  {class:'form-control',datatype:'*',style:'width:250px'}" field="cusCode" type="list"   dictTable="t_kp_cus" dictField="cus_code" dictText="cus_name"  defaultVal="${tKpYushouHPage.cusCode}" hasLabel="false"  title="客户编码" ></t:dictSelect>
				<span class="Validform_checktip"></span>
				<label class="Validform_label" style="display: none;">客户编码</label>
			</td>
			<td align="right">
				<label class="Validform_label">承建单位代码:</label>
			</td>
			<td class="value">
					  <t:dictSelect extendJson="  {class:'form-control',datatype:'*',style:'width:250px'}" field="gdCode" type="list"   dictTable="t_kp_gongdi" dictField="gd_code" dictText="gd_name"  defaultVal="${tKpYushouHPage.gdCode}" hasLabel="false"  title="承建单位代码" ></t:dictSelect>
				<span class="Validform_checktip"></span>
				<label class="Validform_label" style="display: none;">承建单位代码</label>
			</td>
		</tr>
		<tr>
			<%--<td align="right">--%>
				<%--<label class="Validform_label">收款类型:</label>--%>
			<%--</td>--%>
			<%--<td class="value">--%>
					  <%--<t:dictSelect field="ysType" type="list"   typeGroupCode="ys_type"  defaultVal="${ysType}" hasLabel="false"  title="收款类型" ></t:dictSelect>--%>
				<%--<span class="Validform_checktip"></span>--%>
				<%--<label class="Validform_label" style="display: none;">收款类型</label>--%>
			<%--</td>--%>
			<td align="right">
				<label class="Validform_label">代码:</label>
			</td>
			<td class="value">
		     	 <input id="gdDaima" name="gdDaima" type="text" style="width: 150px" class="inputxt"  ignore="ignore" />
				<span class="Validform_checktip"></span>
				<label class="Validform_label" style="display: none;">代码</label>
			</td>
				<td align="right">
					<label class="Validform_label">备注:</label>
				</td>
				<td class="value">
					<input id="skRemark" name="skRemark" type="text" style="width: 150px" class="inputxt"  ignore="ignore" />
					<span class="Validform_checktip"></span>
					<label class="Validform_label" style="display: none;">备注</label>
				</td>
		</tr>
		<tr>


			<td align="right">
				<label class="Validform_label">附件:</label>
			</td>
			<td class="value">
				<t:webUploader name="fujian" bizType="photosucai" auto="true" extensions="doc,txt,jpg,*" buttonStyle="btn-green btn-S" ></t:webUploader>
				<span class="Validform_checktip"></span>
				<label class="Validform_label" style="display: none;">附件</label>
			</td>




		</tr>
	
	</table>
			<div style="width: auto;height: 200px;">
				<%-- 增加一个div，用于调节页面大小，否则默认太小 --%>
				<div style="width:800px;height:1px;"></div>
				<t:tabs id="tt" iframe="false" tabPosition="top" fit="false">
				 <t:tab href="tKpYushouHController.do?tKpYushouList&id=${tKpYushouHPage.id}" icon="icon-search" title="收款行项目" id="tKpYushou"></t:tab>
				</t:tabs>
			</div>
			</t:formvalid>
			<!-- 添加 附表明细 模版 -->
	<table style="display:none">
	<tbody id="add_tKpYushou_table_template">
		<tr>
			 <td align="center"><div style="width: 25px;" name="xh"></div></td>
			 <td align="center"><input style="width:20px;" type="checkbox" name="ck"/></td>
			<td align="left">
				<t:dictSelect field="tKpYushouList[#index#].by1" type="list"    typeGroupCode="kp_cp"  defaultVal="" hasLabel="false"  title="产品"></t:dictSelect>
				<label class="Validform_label" style="display: none;">产品</label>
			</td>

				  <td align="left">
							<t:dictSelect field="tKpYushouList[#index#].ysFangshi" type="list"    typeGroupCode="ys_fangshi"  defaultVal="" hasLabel="false"  title="收款来源"></t:dictSelect>
					  <label class="Validform_label" style="display: none;">来源</label>
				  </td>
				  <td align="left">
					  	<input name="tKpYushouList[#index#].ysJine" maxlength="32" oninput="countby1()" type="text" class="inputxt"  style="width:120px;"  ignore="ignore" />
					  <label class="Validform_label" style="display: none;">金额</label>
				  </td>
				  <%--<td align="left">--%>
					  	<%--<input name="tKpYushouList[#index#].ysRemark" maxlength="32" type="text" class="inputxt"  style="width:120px;"  ignore="ignore" />--%>
					  <%--<label class="Validform_label" style="display: none;">备注</label>--%>
				  <%--</td>--%>

			<td align="left">
				<input name="tKpYushouList[#index#].daxie" maxlength="32" type="text" class="inputxt"  style="width:120px;"  ignore="ignore" />
				<label class="Validform_label" style="display: none;">大写</label>
			</td>

			</tr>
		 </tbody>
		</table>
 </body>
 <script src = "webpage/com/yserp/kp/tKpYushouH.js"></script>
	